<section id="setuser">
    <section class="userTop">
        <header nz-row>
            <div nz-col [nzSpan]="6">
                <label>
                    <span>公司名称</span>
                </label>
                <nz-input [(ngModel)]="parts.logisticsCompanyName" [nzPlaceHolder]="'公司名称'" [nzSize]="'large'"></nz-input>
            </div>
            <div nz-col [nzSpan]="6">
                <label>
                    <span>负责人名称</span>
                </label>
                <nz-input [(ngModel)]="parts.contacts" [nzPlaceHolder]="'负责人名称'" [nzSize]="'large'"></nz-input>
            </div>
            <div nz-col [nzSpan]="6">
                <label>
                    <span>联系方式</span>
                </label>
                <nz-input [(ngModel)]="parts.contactsMobile" [nzPlaceHolder]="'联系方式'" [nzSize]="'large'"></nz-input>
            </div>
        </header>
        <main class="clearfix">
            <button class="fr" nz-button [nzType]="'primary'" (click)="loadAll()">
              <i class="anticon anticon-search"></i><span>检索</span>
            </button>
        </main>
        <footer>
            <button nz-button [nzType]="'default'" routerLink="../huoyun-new">
              <span>添加</span>
            </button>
        </footer>
    </section>
    <section>
        <main>
            <nz-table #nzTable [nzAjaxData]="data" [nzTotal]="_total" [nzPageSize]="10" [nzPageIndex]="pageIndex" (nzPageIndexChange)="resetIndex($event)">
                <thead nz-thead>
                    <tr>
                        <th nz-th><span>序号</span></th>
                        <th nz-th><span>公司名称</span></th>
                        <th nz-th><span>姓名</span></th>
                        <th nz-th><span>联系方式</span></th>
                        <th nz-th><span>入驻时间</span></th>
                        <th nz-th><span>操作</span></th>
                    </tr>
                </thead>
                <tbody nz-tbody>
                    <tr nz-tbody-tr *ngFor="let data of nzTable.data;let i = index;">
                        <td nz-td>{{i+1}}</td>
                        <td nz-td>
                            <a>{{data.logisticsCompanyName}}</a>
                        </td>
                        <td nz-td>{{data.contacts}}</td>
                        <td nz-td>{{data.contactsMobile}}</td>
                        <td nz-td>{{data.checkInTime}}</td>
                        <td nz-td>
                            <button nz-button [nzType]="'default'" [routerLink]="['../huoyun-new',data.logisticsCompanyId]">
                              <span>查看</span>
                            </button>
                            <button nz-button [nzType]="'default'" [routerLink]="['../huoyun-new',data.logisticsCompanyId , 'edit' ]">
                              <span>修改</span>
                            </button>
                        </td>
                    </tr>
                </tbody>
            </nz-table>
        </main>
    </section>
</section>